package myStruct

import (
	"encoding/json"
	"fmt"
)

// App 序列化的时候转化成指定的key
type App struct {
	Name    string `json:"name"`
	Version int    `json:"version"`
}

func init() {
	mod := App{
		Name:    "chihuo",
		Version: 2,
	}
	jstr, _ := json.Marshal(mod)
	fmt.Printf("json string = %s\n", jstr)
}
